﻿@model IEnumerable<Module>
           
<table class="wide">
    <thead>
        <tr>
            <th>Title</th>
            <th>Description</th>
            <th>Date</th>
            <th>Location</th>
        </tr>
    </thead>
    <tbody>
        @foreach (Module m in Model)
        {
            ContextManager.CurrentDb.Entry(m).Reference(md => md.Venue).Load();
            <tr>
                <td>@m.LinkToItem(Html, m.Title)</td>
                <td class="markup">@Html.Raw(m.Teaser)</td>
                <td>@Html.Raw(m.WhenHtml())</td>
                <td>@Html.Raw(m.Venue.ToAddressHtml())</td>
            </tr>
        }
    </tbody>
</table>
